#ifndef KPARTHREAD_H
#define KPARTHREAD_H

#include <qthread.h>
#include "kpar.h"
#include "kparengine.h"

class KparThread: public QThread
{
     Q_OBJECT

public:
    KparThread(Kpar* gui);
    ~KparThread();
    void start_process(QString file_name);
    void start_process_check(QString file_name);
    void start_process_repair(QString file_name);
    void stop_process();
public:
    KparEngine* engine;
    Kpar* gui;

protected:
    void run();

private slots:
    void is_finished();

private:
    QString file_name;
    bool auto_repair;
    bool auto_check;
    bool need_repair;
    int step;
};

#endif // KPARTHREAD_H
